﻿package frEngine.loaders.resource.info
{
    import com.gengine.debug.*;

    public class EffectInfo extends Info3dBase
    {
        protected var _obj:Object;

        public function EffectInfo(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            var value:* = param1;
            super.data = value;
            if (!byteArray)
            {
                return;
            }
            byteArray.position = 0;
            if (byteArray.readByte() == 120 && byteArray.readByte() == -38)
            {
                try
                {
                    byteArray.uncompress();
                }
                catch (e:Error)
                {
                    Log.debugLog.error("解压缩数据时出错:" + this.name);
                }
            }
            byteArray.position = 0;
            this._obj = byteArray.readObject();
            return;
        }// end function

        override public function dispose() : void
        {
            super.dispose();
            this._obj = null;
            return;
        }// end function

        public function get obj() : Object
        {
            return this._obj;
        }// end function

    }
}
